//
//  MyMoneyViewController.m
//  JinChengYun
//
//  Created by 金橙云 on 2017/2/28.
//  Copyright © 2017年 金橙云. All rights reserved.
//

#import "MyMoneyViewController.h"

#import "KeHuViewController.h"
#import "JieSuanViewController.h"
#import "DCNavTabBarController.h"
@interface MyMoneyViewController ()<UISearchBarDelegate>
@property(nonatomic,strong)UISearchBar *moneySeacherBar;
@end

@implementation MyMoneyViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"我的佣金";
    
    
       KeHuViewController *keHuVC = [[KeHuViewController alloc] init];
    keHuVC.title = @"客户详情";
    JieSuanViewController *jieVC= [[JieSuanViewController alloc] init];
    jieVC.title = @"结算详情";
    
    NSArray *subViewControllers = @[keHuVC,jieVC];
    
    DCNavTabBarController *tabBarVC = [[DCNavTabBarController alloc]initWithSubViewControllers:subViewControllers];
    tabBarVC.view.frame = CGRectMake(0, 108, B_WIDTH, B_HEIGHT - 108);
    [self.view addSubview:tabBarVC.view];
    [self addChildViewController:tabBarVC];

    [self setUpSearchBar];
    
    
    
}

-(void)setUpSearchBar
{
    _moneySeacherBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0, 64, B_WIDTH, 44)];
    _moneySeacherBar.delegate = self;
    [_moneySeacherBar setPlaceholder:@"请输入搜索内容"];
    [self.view addSubview:_moneySeacherBar];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    }


@end
